package com.ymatou.riskcontrol.api.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;

/**
 * 风控单个订单验证接口Call FreeMaker Template自动生成代码
 */
public class SingleVerifyCall extends YmatouBaseCall {
	private static String opurl = "Verify/SingleVerify";

	public SingleVerifyCall() {
		super(EnvSetup.getSystemUrl("api_riskcontrol"), opurl, "POST", "JSON");
	}

	@Override
	public void addDefHeader() {
		client.addHeader("Accept", "text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}

	/**
	 * 获取result
	 * 
	 * @return
	 */
	public String getResult() {
		String result = null;
		try {
			// result = new JSONObject(getReturnData()).toString();
			result = getReturnData();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}

}